#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__

#include "luoo_packet.hpp"

const luoo::uint16 kMSGIDX_REQ_LOGIN                  = 10;
const luoo::uint16 kMSGIDX_REP_LOGIN                  = 11;


#pragma pack(push, 1)

struct ReqLogin : public luoo::packet_base
{
	luoo::uint8 id[16];
	luoo::uint8 pwd[16];

	ReqLogin()
		: packet_base(kMSGIDX_REQ_LOGIN)
	{}
};

struct RepLogin : public luoo::packet_base
{
	bool result;

	RepLogin()
		: packet_base(kMSGIDX_REP_LOGIN)
	{}
};

#pragma pack(pop)

#endif//__PROTOCOL_H__